package xan.tm.digital.xantm.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import xan.tm.digital.common.entity.User;
import xan.tm.digital.xantm.service.WeeklyReportService;

import java.util.List;

/**
 * @author: renwq
 * @date: 2025/9/11 17:43
 * @sesc: 周报控制器
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/weeklyReport")
@Tag(name = "WeeklyReportController", description = "周报控制器")
public class WeeklyReportController {

    @Autowired
    private WeeklyReportService weeklyReportService;

    @PostMapping("/test")
    public List<String> test(@RequestBody User user) {
        return weeklyReportService.test(user);
    }
}
